package com.jungle.mvvm.update;

import com.jungle.mvvm.http.download.DownLoadSubscriber;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName DownLoadHelper
 * @Description TODO(一句话描述该类的功能)
 * @Author Daniel
 * @Version V1.0.0
 */
public class DownLoadHelper {
    public synchronized Map<String, DownLoadSubscriber> getDownLoadSubscribers() {
        return downLoadSubscribers;
    }

    public void setDownLoadSubscribers(Map<String, DownLoadSubscriber> downLoadSubscribers) {
        this.downLoadSubscribers = downLoadSubscribers;
    }

    private Map<String, DownLoadSubscriber> downLoadSubscribers = new HashMap();

    private DownLoadHelper() {

    }

    public static DownLoadHelper getInstance() {
        return SingletonHolder.sIntance;
    }

    /**
     * 静态内部类
     */

    private static class SingletonHolder {

        private static final DownLoadHelper sIntance = new DownLoadHelper();

    }
}

